/**
 * 神州信息(2012)
 */
package net.abbp.mtr.data;

import java.sql.Timestamp;
import java.util.Date;

import net.abbp.dao.entity.annotation.Column;
import net.abbp.dao.entity.annotation.Id;
import net.abbp.dao.entity.annotation.Table;

/**
 * 温度记录,包括通道、时间、值
 * 
 * @version 1.0
 * @author <a herf="lexloo@gmail.com">lexloo</a>
 * @since ABBP 1.0
 * 
 *        Date：2012-4-4
 */
@Table(name = "monitor_data")
public class Record {
    @Column
    @Id
    private int id;
    @Column
    private String channel;
    @Column(name = "tm")
    private Timestamp time;
    @Column(name = "v")
    private double value;

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getChannel() {
        return channel;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public Date getTime() {
        return time;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public double getValue() {
        return value;
    }
}
